<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Geo3DML-CPP: include/geo3dml/Light.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Geo3DML-CPP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_acc7f90eaa859a07dba55a8b62805b11.html">geo3dml</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">Light.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_light_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">// UTF-8编码</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &quot;<a class="code" href="_color_8h.html">Color.h</a>&quot;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegeo3dml.html">geo3dml</a> {</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html">   10</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a> {</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span>    <span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00013" data-start="{" data-end="};">
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72b">   13</a></span>        <span class="keyword">enum</span> <a class="code hl_enumeration" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72b">Type</a> {</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba31538c97535b4877facb08cb48edc81a">   14</a></span>            <a class="code hl_enumvalue" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba31538c97535b4877facb08cb48edc81a">Light_Unknown</a>,  </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba98019168cba62e8b21b049b0c39c17a1">   17</a></span>            <a class="code hl_enumvalue" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba98019168cba62e8b21b049b0c39c17a1">Light_Head</a>,     </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba81517c243ea6889712caaa3f204a64ea">   18</a></span>            <a class="code hl_enumvalue" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba81517c243ea6889712caaa3f204a64ea">Light_Camera</a>,   </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72baad41976d23c95330499981ea3d9a66fb">   19</a></span>            <a class="code hl_enumvalue" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72baad41976d23c95330499981ea3d9a66fb">Light_Scene</a>,    </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bab013dcc3f5e614148bd9b0f171ea3a16">   23</a></span>            <a class="code hl_enumvalue" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bab013dcc3f5e614148bd9b0f171ea3a16">Light_DirectionalLight</a>, </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bac8ef2cf947fbd6a39bd404c54ed2c958">   24</a></span>            <a class="code hl_enumvalue" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bac8ef2cf947fbd6a39bd404c54ed2c958">Light_PointLight</a>,       </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bae7c0cba796f64da8ef087f9239f6d842">   25</a></span>            <a class="code hl_enumvalue" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bae7c0cba796f64da8ef087f9239f6d842">Light_SpotLight</a>,        </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>        };</div>
</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a4996dc0c9eeae4c5947ae7a0afcf8435">   28</a></span>        <span class="keyword">static</span> <a class="code hl_enumeration" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72b">Type</a> <a class="code hl_function" href="classgeo3dml_1_1_light.html#a4996dc0c9eeae4c5947ae7a0afcf8435">NameToLightType</a>(<span class="keyword">const</span> std::string&amp; name);</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a668f69fef2b6b10c565d1e815e415389">   31</a></span>        <a class="code hl_function" href="classgeo3dml_1_1_light.html#a668f69fef2b6b10c565d1e815e415389">Light</a>();</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#ad72cfed901b3eda3e1aacfa2a5e33cbc">   32</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classgeo3dml_1_1_light.html#ad72cfed901b3eda3e1aacfa2a5e33cbc">~Light</a>();</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a60bb653ce31821051ac5115db3fe5232">   34</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#a60bb653ce31821051ac5115db3fe5232">Switch</a>(<span class="keywordtype">bool</span> on);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a35a0866edc1faa39681128e2c94edec3">   35</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classgeo3dml_1_1_light.html#a35a0866edc1faa39681128e2c94edec3">IsOn</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a3b0b57eb573fa256e05ad3e6b5124c13">   37</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#a3b0b57eb573fa256e05ad3e6b5124c13">SetType</a>(<a class="code hl_enumeration" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72b">Type</a> t);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#aa72450627f5d8e9f6fc4b54897a8f48e">   38</a></span>        <a class="code hl_enumeration" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72b">Type</a> <a class="code hl_function" href="classgeo3dml_1_1_light.html#aa72450627f5d8e9f6fc4b54897a8f48e">GetType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a29516e49a3af3b68a82dff1d2d21441f">   40</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#a29516e49a3af3b68a82dff1d2d21441f">SetPosition</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a97f2bce96589793b04a6d67207b3a600">   41</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_light.html#a97f2bce96589793b04a6d67207b3a600">GetPosition</a>(<span class="keywordtype">double</span>&amp; x, <span class="keywordtype">double</span>&amp; y, <span class="keywordtype">double</span>&amp; z);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a9d3a645d1f501271ec8f7520797eac91">   42</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#a9d3a645d1f501271ec8f7520797eac91">SetFocalPosition</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z);</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a9a7bf49ed6711222233a397ecbe08c24">   43</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_light.html#a9a7bf49ed6711222233a397ecbe08c24">GetFocalPosition</a>(<span class="keywordtype">double</span>&amp; x, <span class="keywordtype">double</span>&amp; y, <span class="keywordtype">double</span>&amp; z);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#ad743a9276effc1bc821798b1bb3a55a3">   45</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#ad743a9276effc1bc821798b1bb3a55a3">SetIntensity</a>(<span class="keywordtype">double</span> i);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a09e483f23738c413029bf98f42cb7dcd">   46</a></span>        <span class="keywordtype">double</span> <a class="code hl_function" href="classgeo3dml_1_1_light.html#a09e483f23738c413029bf98f42cb7dcd">GetIntensity</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a3a5d80560e2d8bdc93eb73c9fa4a8243">   48</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#a3a5d80560e2d8bdc93eb73c9fa4a8243">SetAmbientColor</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a>&amp; c);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a3ba97bf8366e421f712a8c9fe2028921">   49</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_function" href="classgeo3dml_1_1_light.html#a3ba97bf8366e421f712a8c9fe2028921">GetAmbientColor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a997f40eac670327902251ab2d5d26df6">   50</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#a997f40eac670327902251ab2d5d26df6">SetDiffuseColor</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a>&amp; c);</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a6f41ace4167f4d0057099329312ee04e">   51</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_function" href="classgeo3dml_1_1_light.html#a6f41ace4167f4d0057099329312ee04e">GetDiffuseColor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a0b36d6474025bcc2e11bda9f97a34f43">   52</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_light.html#a0b36d6474025bcc2e11bda9f97a34f43">SetSpecularColor</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a>&amp; c);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#ab3b363afdf35425ccb863d660b1842c6">   53</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_function" href="classgeo3dml_1_1_light.html#ab3b363afdf35425ccb863d660b1842c6">GetSpecularColor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a981cd8b66070609b91dcf885e7edda61">   56</a></span>        <span class="keywordtype">bool</span> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#a981cd8b66070609b91dcf885e7edda61">isOn_</a>;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a2d883247786312c3f1fc2b74fd6f3e38">   57</a></span>        <a class="code hl_enumeration" href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72b">Type</a> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#a2d883247786312c3f1fc2b74fd6f3e38">lightType_</a>;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a07736c793a0ce95ec783f6c1853ccd51">   58</a></span>        <span class="keywordtype">double</span> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#a07736c793a0ce95ec783f6c1853ccd51">position_</a>[3];</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#ae51f787804ad8ce3700ed42c02e95f76">   59</a></span>        <span class="keywordtype">double</span> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#ae51f787804ad8ce3700ed42c02e95f76">focalPosition_</a>[3];</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a12335ca94b4dc2a18b104fd7ca857b38">   60</a></span>        <span class="keywordtype">double</span> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#a12335ca94b4dc2a18b104fd7ca857b38">intensity_</a>;  </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a5d415f0952c57ae3424722c877d67561">   61</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#a5d415f0952c57ae3424722c877d67561">ambientColor_</a>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a13d72fbabbc072701b8f087a65efc463">   62</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#a13d72fbabbc072701b8f087a65efc463">diffuseColor_</a>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_light.html#a6b094e7da79e2154c32cb23f742654fd">   63</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_variable" href="classgeo3dml_1_1_light.html#a6b094e7da79e2154c32cb23f742654fd">specularColor_</a>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    };</div>
</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>}</div>
<div class="ttc" id="a_color_8h_html"><div class="ttname"><a href="_color_8h.html">Color.h</a></div></div>
<div class="ttc" id="aclassgeo3dml_1_1_color_html"><div class="ttname"><a href="classgeo3dml_1_1_color.html">geo3dml::Color</a></div><div class="ttdef"><b>Definition</b> Color.h:5</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html"><div class="ttname"><a href="classgeo3dml_1_1_light.html">geo3dml::Light</a></div><div class="ttdoc">光源配置。</div><div class="ttdef"><b>Definition</b> Light.h:10</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a07736c793a0ce95ec783f6c1853ccd51"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a07736c793a0ce95ec783f6c1853ccd51">geo3dml::Light::position_</a></div><div class="ttdeci">double position_[3]</div><div class="ttdef"><b>Definition</b> Light.h:58</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a09e483f23738c413029bf98f42cb7dcd"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a09e483f23738c413029bf98f42cb7dcd">geo3dml::Light::GetIntensity</a></div><div class="ttdeci">double GetIntensity() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a0b36d6474025bcc2e11bda9f97a34f43"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a0b36d6474025bcc2e11bda9f97a34f43">geo3dml::Light::SetSpecularColor</a></div><div class="ttdeci">Light &amp; SetSpecularColor(const Color &amp;c)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a12335ca94b4dc2a18b104fd7ca857b38"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a12335ca94b4dc2a18b104fd7ca857b38">geo3dml::Light::intensity_</a></div><div class="ttdeci">double intensity_</div><div class="ttdoc">Strength of the light.</div><div class="ttdef"><b>Definition</b> Light.h:60</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a13d72fbabbc072701b8f087a65efc463"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a13d72fbabbc072701b8f087a65efc463">geo3dml::Light::diffuseColor_</a></div><div class="ttdeci">Color diffuseColor_</div><div class="ttdef"><b>Definition</b> Light.h:62</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a29516e49a3af3b68a82dff1d2d21441f"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a29516e49a3af3b68a82dff1d2d21441f">geo3dml::Light::SetPosition</a></div><div class="ttdeci">Light &amp; SetPosition(double x, double y, double z)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a2d883247786312c3f1fc2b74fd6f3e38"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a2d883247786312c3f1fc2b74fd6f3e38">geo3dml::Light::lightType_</a></div><div class="ttdeci">Type lightType_</div><div class="ttdef"><b>Definition</b> Light.h:57</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a35a0866edc1faa39681128e2c94edec3"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a35a0866edc1faa39681128e2c94edec3">geo3dml::Light::IsOn</a></div><div class="ttdeci">bool IsOn() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a3a5d80560e2d8bdc93eb73c9fa4a8243"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a3a5d80560e2d8bdc93eb73c9fa4a8243">geo3dml::Light::SetAmbientColor</a></div><div class="ttdeci">Light &amp; SetAmbientColor(const Color &amp;c)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a3b0b57eb573fa256e05ad3e6b5124c13"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a3b0b57eb573fa256e05ad3e6b5124c13">geo3dml::Light::SetType</a></div><div class="ttdeci">Light &amp; SetType(Type t)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a3ba97bf8366e421f712a8c9fe2028921"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a3ba97bf8366e421f712a8c9fe2028921">geo3dml::Light::GetAmbientColor</a></div><div class="ttdeci">Color GetAmbientColor() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a4996dc0c9eeae4c5947ae7a0afcf8435"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a4996dc0c9eeae4c5947ae7a0afcf8435">geo3dml::Light::NameToLightType</a></div><div class="ttdeci">static Type NameToLightType(const std::string &amp;name)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a5d415f0952c57ae3424722c877d67561"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a5d415f0952c57ae3424722c877d67561">geo3dml::Light::ambientColor_</a></div><div class="ttdeci">Color ambientColor_</div><div class="ttdef"><b>Definition</b> Light.h:61</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a60bb653ce31821051ac5115db3fe5232"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a60bb653ce31821051ac5115db3fe5232">geo3dml::Light::Switch</a></div><div class="ttdeci">Light &amp; Switch(bool on)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a668f69fef2b6b10c565d1e815e415389"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a668f69fef2b6b10c565d1e815e415389">geo3dml::Light::Light</a></div><div class="ttdeci">Light()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a6b094e7da79e2154c32cb23f742654fd"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a6b094e7da79e2154c32cb23f742654fd">geo3dml::Light::specularColor_</a></div><div class="ttdeci">Color specularColor_</div><div class="ttdef"><b>Definition</b> Light.h:63</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a6f41ace4167f4d0057099329312ee04e"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a6f41ace4167f4d0057099329312ee04e">geo3dml::Light::GetDiffuseColor</a></div><div class="ttdeci">Color GetDiffuseColor() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72b"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72b">geo3dml::Light::Type</a></div><div class="ttdeci">Type</div><div class="ttdoc">光源的类型。</div><div class="ttdef"><b>Definition</b> Light.h:13</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72ba31538c97535b4877facb08cb48edc81a"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba31538c97535b4877facb08cb48edc81a">geo3dml::Light::Light_Unknown</a></div><div class="ttdeci">@ Light_Unknown</div><div class="ttdef"><b>Definition</b> Light.h:14</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72ba81517c243ea6889712caaa3f204a64ea"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba81517c243ea6889712caaa3f204a64ea">geo3dml::Light::Light_Camera</a></div><div class="ttdeci">@ Light_Camera</div><div class="ttdoc">相机灯</div><div class="ttdef"><b>Definition</b> Light.h:18</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72ba98019168cba62e8b21b049b0c39c17a1"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72ba98019168cba62e8b21b049b0c39c17a1">geo3dml::Light::Light_Head</a></div><div class="ttdeci">@ Light_Head</div><div class="ttdoc">头灯</div><div class="ttdef"><b>Definition</b> Light.h:17</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72baad41976d23c95330499981ea3d9a66fb"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72baad41976d23c95330499981ea3d9a66fb">geo3dml::Light::Light_Scene</a></div><div class="ttdeci">@ Light_Scene</div><div class="ttdoc">场景等</div><div class="ttdef"><b>Definition</b> Light.h:19</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72bab013dcc3f5e614148bd9b0f171ea3a16"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bab013dcc3f5e614148bd9b0f171ea3a16">geo3dml::Light::Light_DirectionalLight</a></div><div class="ttdeci">@ Light_DirectionalLight</div><div class="ttdoc">定向光源，模拟环境光。</div><div class="ttdef"><b>Definition</b> Light.h:23</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72bac8ef2cf947fbd6a39bd404c54ed2c958"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bac8ef2cf947fbd6a39bd404c54ed2c958">geo3dml::Light::Light_PointLight</a></div><div class="ttdeci">@ Light_PointLight</div><div class="ttdoc">点光源，模拟各种点状光源。</div><div class="ttdef"><b>Definition</b> Light.h:24</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a81acbfe09f78d093206a4bf83b36a72bae7c0cba796f64da8ef087f9239f6d842"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a81acbfe09f78d093206a4bf83b36a72bae7c0cba796f64da8ef087f9239f6d842">geo3dml::Light::Light_SpotLight</a></div><div class="ttdeci">@ Light_SpotLight</div><div class="ttdoc">聚光灯，模拟手电筒、探照灯等光源类型。</div><div class="ttdef"><b>Definition</b> Light.h:25</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a97f2bce96589793b04a6d67207b3a600"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a97f2bce96589793b04a6d67207b3a600">geo3dml::Light::GetPosition</a></div><div class="ttdeci">void GetPosition(double &amp;x, double &amp;y, double &amp;z)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a981cd8b66070609b91dcf885e7edda61"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a981cd8b66070609b91dcf885e7edda61">geo3dml::Light::isOn_</a></div><div class="ttdeci">bool isOn_</div><div class="ttdef"><b>Definition</b> Light.h:56</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a997f40eac670327902251ab2d5d26df6"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a997f40eac670327902251ab2d5d26df6">geo3dml::Light::SetDiffuseColor</a></div><div class="ttdeci">Light &amp; SetDiffuseColor(const Color &amp;c)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a9a7bf49ed6711222233a397ecbe08c24"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a9a7bf49ed6711222233a397ecbe08c24">geo3dml::Light::GetFocalPosition</a></div><div class="ttdeci">void GetFocalPosition(double &amp;x, double &amp;y, double &amp;z)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_a9d3a645d1f501271ec8f7520797eac91"><div class="ttname"><a href="classgeo3dml_1_1_light.html#a9d3a645d1f501271ec8f7520797eac91">geo3dml::Light::SetFocalPosition</a></div><div class="ttdeci">Light &amp; SetFocalPosition(double x, double y, double z)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_aa72450627f5d8e9f6fc4b54897a8f48e"><div class="ttname"><a href="classgeo3dml_1_1_light.html#aa72450627f5d8e9f6fc4b54897a8f48e">geo3dml::Light::GetType</a></div><div class="ttdeci">Type GetType() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_ab3b363afdf35425ccb863d660b1842c6"><div class="ttname"><a href="classgeo3dml_1_1_light.html#ab3b363afdf35425ccb863d660b1842c6">geo3dml::Light::GetSpecularColor</a></div><div class="ttdeci">Color GetSpecularColor() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_ad72cfed901b3eda3e1aacfa2a5e33cbc"><div class="ttname"><a href="classgeo3dml_1_1_light.html#ad72cfed901b3eda3e1aacfa2a5e33cbc">geo3dml::Light::~Light</a></div><div class="ttdeci">virtual ~Light()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_ad743a9276effc1bc821798b1bb3a55a3"><div class="ttname"><a href="classgeo3dml_1_1_light.html#ad743a9276effc1bc821798b1bb3a55a3">geo3dml::Light::SetIntensity</a></div><div class="ttdeci">Light &amp; SetIntensity(double i)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html_ae51f787804ad8ce3700ed42c02e95f76"><div class="ttname"><a href="classgeo3dml_1_1_light.html#ae51f787804ad8ce3700ed42c02e95f76">geo3dml::Light::focalPosition_</a></div><div class="ttdeci">double focalPosition_[3]</div><div class="ttdef"><b>Definition</b> Light.h:59</div></div>
<div class="ttc" id="anamespacegeo3dml_html"><div class="ttname"><a href="namespacegeo3dml.html">geo3dml</a></div><div class="ttdef"><b>Definition</b> AbstractMetadata.h:6</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
